package cn.itsub.javablog.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 夏增明
 * @Date: 2021/06/18/18:00
 * @Description:
 */
@Controller
public class HelloController {

    @RequestMapping({"/","/index.html"})
    public String index_html(Model model) {
        System.out.println("执行");
        model.addAttribute("welcome", "欢迎使用Java博客系统");
        return "index";//index.ftl
    }
}
